package start.demo01.exception;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class NullTest {
    @Test
    public void t0(){
        List<String> list=new ArrayList<>();
        for(String s:list){
            System.out.println(s);
        }
    }
    @Test
    public void t1(){
        List<String> list=null;//new ArrayList<>();
        for(String s:list){
            System.out.println(s);
        }
    }
}
